import Vue from 'vue'
import App from '@/App'
import store from '@/store'
import MpvueRouterPatch from 'mpvue-router-patch'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.use(MpvueRouterPatch)
//Vue.prototype.$store = store

const app = new Vue({
  el: '#app',
  store,
  ...App
})
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会ss被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      'pages/index/index',
      'pages/edit/auth',
      'pages/regist/index',
      'pages/workType/index',
      'pages/login/index',
      'pages/overlayArea/index',
      '^pages/index2/index',
      'pages/me/index',
      'pages/realNameAuth/index',
      'pages/order/index',
      'pages/setAuth/index',
      'pages/me/sendVerifyCode',
      'pages/me/resetPassword'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#f5532d',
      navigationBarTitleText: '巧技',
      navigationBarTextStyle: 'white'
    },
    tabBar: {
      color: '#929292',
      selectedColor: '#f5532d',
      backgroundColor: '#f6f6f6',
      position: 'bottom',
      list: [
        {
          pagePath: 'pages/index/index',
          text: '首页',
          iconPath: 'static/icon/home_normal.png',
          selectedIconPath: 'static/icon/home_active.png'
        },
        {
          pagePath: 'pages/order/index',
          text: '订单',
          iconPath: 'static/icon/search_normal.png',
          selectedIconPath: 'static/icon/search_active.png'
        },
        {
          pagePath: 'pages/me/index',
          text: '我的',
          iconPath: 'static/icon/user_normal.png',
          selectedIconPath: 'static/icon/user_active.png'
        }
      ]
    }
  }
}
